package org.honeyweb.gsoc.pages;

import java.util.ArrayList;
import java.util.List;

import org.honeyweb.gsoc.model.Urls;


public class InterfaceWS {
	
	private int sessionID;
	
	public void getConfig() {
	
	}
	
	public int visit(Urls[] urlArray){
		
		return sessionID;		
	}
	
	public String abort(int sessionID){
		
		if(sessionID == 0){
			return "OK";
		}
		else {
			return "NOTOK";
		}
	}
	
	public String pause(int sessionID){
		
		if(sessionID == 0){
			return "OK";
		}
		else {
			return "NOTOK";
		}
	}
	
	public String getStatus(int sessionID){
		
		if(sessionID == 0){
			return "RUNNING";
		}
		if(sessionID == 1){
			return "COMPLETE";
		}
		if(sessionID == 2){
			return "MALICIOUS";
		}
		else{
			return "FAILED";
		}
	}
	
	
	public List<String> getQueryResults(String query){
		List<String> results = new ArrayList<String>();
		return results;
	}
		
	
	
}
